package com.wanxi.enterprise.mapper;

import com.wanxi.enterprise.api.dto.EnterpriseUpdateInDTO;
import com.wanxi.enterprise.api.dto.LocateDataFindByIdOutDTO;
import com.wanxi.enterprise.api.entity.*;
import com.wanxi.enterprise.api.vo.*;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * @author jinf
 * @date 2021/12/30
 * @version 1.0
 */
@Mapper
public interface EnterpriseMapper {
    List<EnterpriseFindAllOutVo> findAll(EnterpriseQueryEntity enterpriseQueryEntity);

    Long addApply(LocateApply locateApply);

    LocateDataFindByIdOutDTO findApplyDataById(Long id);

    Boolean updateApply(LocateApply locateApply);

    Long updateEnterpriseById(EnterpriseUpdateInDTO enterpriseUpdateInDTO);

    Long addEnterprise(EnterpriseEntity enterpriseEntity);

    Long addApplyData(LocateDataEntity locateDataEntity);

    LocateDataFindByIdOutDTO findLocateApplyById(Long id);

    LocateApply checkLocateApply(Long findId);

    List<LocateApplyFindAllOutVO> findApplyAll(LocateApplyQureyEntity locateApplyQureyEntity);

    String findEnterpriseEmail(Long id);

    //店家的
    int addShop(ShopEntity shopEntity);

    List<ShopFindAllOutVo> findShopAll(ShopEntity shopEntity);

    ShopFindByIdOutVo findShopById(Long id);

    int updateShop(ShopEntity shopEntity);

    int deleteShopById(Long id);

    Long addUserInf(EnterpriseEntity enterpriseEntity);

    int updateEnterpriseLocateStatus(Long twoId);
}
